<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue-2.6.10.js"></script>
</head>
<body>
<div id="app">
    <my-list :items="lessons"></my-list>
</div>
<script type="text/javascript">
    const myList = {
        template:'<ul>\n' +
        '            <li v-for="item in items" :key="item.id">{{item.id}}--{{item.name}}</li>\n' +
        '</ul>',
        props:{
            items:{
                type:Array,
                default:[]
            }
        }
    };
    new Vue({
        el: "#app",
        data: {
            msg:"ff",
            lessons:[
                {"id":1,"name":"aa"},
                {"id":2,"name":"ba"},
                {"id":3,"name":"ca"}
            ]
        },
        components:{
            myList
        }
    });
</script>
</body>
</html>